<template>
    <div class="card p-3 bg-white mt-3">
        <div class="card-header d-flex ai-center">
            <i :class="['iconfont', `icon-${icon}`]"></i>
            <div class="fs-lg flex-1 px-2"
                :class="{'border-bottom': !plain, 'pb-3': !plain}"
            >
                <strong>{{ title }}</strong>
            </div>
            <i class="iconfont icon-menu" v-if="!plain"></i>
        </div>
        <div class="card-body pt-3">
            <slot/>
        </div>
    </div>
</template>

<script>
    export default {
        name: "ListCard",
        props: {
            icon: {
                type: String
            },
            title: {
                type: String
            },
            plain: {
                type: Boolean
            }
        }
    }
</script>

<style lang="scss">
    @import "../assets/scss/var";
    .card {
        border-bottom: 1px solid $border-color;
    }
</style>
